﻿<%@ Page Title="" Language="C#" MasterPageFile="~/templete/MasterPage_Front.master" AutoEventWireup="true" CodeFile="Reg.aspx.cs" Inherits="Reg" %>

<asp:Content ID="Content_Title" ContentPlaceHolderID="PageTitle" Runat="Server">
加入中大e家，畅享一站式的校园信息服务！
</asp:Content>

<asp:Content ID="Content_meta" ContentPlaceHolderID="HeadInfo" Runat="Server">
<style type="text/css">
    body{background-color:#efffef;} 
</style>

<script language="javascript" type="text/javascript">
    //更换验证码
    function reflashvc() {
        var randomnum = Math.random();
        var getimagecode = document.getElementById("img_VCode");
        getimagecode.src = "plugins/ValidateCode.aspx? " + randomnum;
    }
</script>

</asp:Content>

<asp:Content ID="Content_Header" ContentPlaceHolderID="Header" Runat="Server">
<div id="header">
	<h1 id="logo"><img alt="" src="templete/images/logo.png"/></h1>
</div>
    
</asp:Content>


<asp:Content ID="Content_Content" ContentPlaceHolderID="MainContent" Runat="Server">
<div id="content-zone">
<asp:Panel ID="Panel_Step1" runat="server">
	<dl>
		<dt>注册新账户<span id="signin-d">已有e家帐号？请直接 <a href="SignIn.aspx">登录</a></span></dt>
		<dd><span>登录账号</span><asp:TextBox ID="tb_UserName" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tb_UserName"
                ErrorMessage="请输入一个5~10位的用户名"></asp:RequiredFieldValidator>
        </dd>
		<dd><span>创建密码</span><asp:TextBox ID="tb_Password" runat="server" TextMode="Password"></asp:TextBox></dd>
		<dd><span>确认密码</span><asp:TextBox ID="tb_PWRepeat" runat="server" TextMode="Password"></asp:TextBox>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="tb_Password" ControlToValidate="tb_PWRepeat"
                ErrorMessage="两次输入密码不一致"></asp:CompareValidator>
        </dd>
		<dd><span>电子邮箱</span><asp:TextBox ID="tb_EMail" runat="server"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"  ControlToValidate="tb_EMail" ValidationExpression=".+@.+"
                ErrorMessage="邮箱格式好像有点问题"></asp:RegularExpressionValidator>
        </dd>
		<dd class="verl"><span>验证信息</span><asp:TextBox ID="tb_VCode" runat="server"></asp:TextBox>
            <script language="javascript" type="text/javascript">
                document.write("<img id='img_VCode' src='plugins/ValidateCode.aspx?" + Math.random() + "'/>");
            </script>
            <a href="javascript:reflashvc();" >换一个</a></dd>
		<dd class="license">
            <asp:CheckBox ID="cb_License" runat="server" style="width: 19px; height: 17px" />
                我已阅读并同意<a href="#" style="color:#5c98cc">《中大e家网络服务使用协议》</a></dd>
		<dd>
            <asp:LinkButton  id="submit" class="btn_reg" runat="server" 
                onclick="submit_Click">&nbsp;</asp:LinkButton></dd>
	</dl>
    </asp:Panel>

    <asp:Panel ID="Panel_Step2" runat="server"  Visible="false">
	<dl class="reg-step2">
		<dt>恭喜您！注册成功，欢迎加入中大e家！</dt>
		<dd>接下来，您可以：<span></span></dd>
		<dd><span style="color:#900;">/*</span><a href="Member/UserCenter.aspx">进入我的e家</a></dd>
		<dd><span style="color:#090;">/*</span><a href="Member/UserCenter.aspx?Act=WeiboSet">绑定您的微博账号</a></dd>
		<dd><span style="color:#009;">/*</span><a href="Member/UserCenter.aspx?Act=NewsSet">订阅属于您的个性校园新闻</a></dd>
		<dd><span style="color:#ffc44b;">/*</span><a href="Member/UserCenter.aspx?Act=Auth">完善您的个人资料，更可以申请e家认证，向大家展示您一名中大学子的风采！</a></dd>
		<dd>&nbsp;</dd>
		<dd style="font-size:1.4em;"><span>再次对您的加入表示真诚的欢迎！</span></dd>
	</dl>
    </asp:Panel>

</div> 
</asp:Content>

<asp:Content ID="Content_Footer" ContentPlaceHolderID="Footer" Runat="Server">

<div id="footer-s">&copy;2011 esysu.com</div>

</asp:Content>

